package Object.Clone;

public class CloneExample implements Cloneable{
    private int a;
    private int b;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }


    public static void main(String[] args) {
        CloneExample e1 = new CloneExample();
        try {
            Object clone = e1.clone();
            System.out.println("Clone successful!");
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}

